import request from '@/utils/request'
export default {
    //3、提交借款额度审批结果
    approval(borrowerApproval){
        return request({
            url:`/admin/core/borrower/approval`,
            method:'POST',
            data: borrowerApproval
        })
    },
    //2、查询借款人详情
    getById(borrowerId){
        return request({
            url:`/admin/core/borrower/${borrowerId}`,
            method:'GET'
        })
    },
    //1、查询借款人列表
    list(pageNum,pageSize,key){
        return request({
            url:`/admin/core/borrower/list/${pageNum}/${pageSize}`,
            method:'GET',
            params:{key}
        })
    }
}